package cn.ydxiaoshaui.aip.imageclassify.bean;

import java.io.Serializable;

/**
 * @Description 货币识别
 * @author 小帅丶
 * @className CurrencyDetect
 * @Date 2019/9/26-16:09
 **/
public class CurrencyDetect implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 唯一的log id，用于问题定位 */
    private Long log_id;
    /** 识别结果 */
    private Result result;

    public Long getLog_id() {
        return log_id;
    }

    public void setLog_id(Long log_id) {
        this.log_id = log_id;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    private static class Result{
        /** 判断是否返回详细信息（除货币名称之外的其他字段），含有返回1，不含有返回0 */
        private Integer hasdetail;
        /** 货币名称，无法识别返回空 */
        private String currencyName;
        /** 货币代码，hasdetail = 0时，表示无法识别，该字段不返回 */
        private String currencyCode;
        /** 货币面值，hasdetail = 0时，表示无法识别，该字段不返回 */
        private String currencyDenomination;
        /** 货币年份，hasdetail = 0时，表示无法识别，该字段不返回 */
        private String year;

        public Integer getHasdetail() {
            return hasdetail;
        }

        public void setHasdetail(Integer hasdetail) {
            this.hasdetail = hasdetail;
        }

        public String getCurrencyName() {
            return currencyName;
        }

        public void setCurrencyName(String currencyName) {
            this.currencyName = currencyName;
        }

        public String getCurrencyCode() {
            return currencyCode;
        }

        public void setCurrencyCode(String currencyCode) {
            this.currencyCode = currencyCode;
        }

        public String getCurrencyDenomination() {
            return currencyDenomination;
        }

        public void setCurrencyDenomination(String currencyDenomination) {
            this.currencyDenomination = currencyDenomination;
        }

        public String getYear() {
            return year;
        }

        public void setYear(String year) {
            this.year = year;
        }
    }
}
